import React from "react";
import ReactDOM from "react-dom"
import App from "./App";
import store from './redux/store'

ReactDOM.render(<App />,document.getElementById('root'))
store.subscribe(()=>{
    // 检测redux 中状态的变化 所有的子组件都会重新调用 render 方法 
    ReactDOM.render(<App />,document.getElementById('root'))
})